package com.antoco.operation.bigscreen.mapper;

import com.antoco.operation.bigscreen.model.dto.SensorReportDTO;
import com.antoco.operation.bigscreen.model.entity.SensorReport;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring", uses = ReferenceMapper.class)
public interface SensorReportMapper extends GenericMapper<SensorReport, SensorReportDTO> {
    @Override
    @Mapping(target = "id", ignore = false)
    SensorReport asEntity(SensorReportDTO dto);
}